DTO — штука вроде очевидная: "не светить сущностями наружу". Но что дальше?
🔹 Кто-то делает DTO только в контроллерах, а внутри работает с доменными объектами. 🔹 Кто-то строит слоистую модель DTO-шек, даже между сервисами и репозиториями. 🔹 А кто-то вообще говорит: «DTO везде — меньше связность, проще миграции, лучше тестируемость». 💬 Вопрос к вам:
— Где заканчивается польза от DTO, а где начинается бессмысленная бюрократия? — DTO только на границах приложения или вообще везде? — Или пора забить и возвращать UserEntity напрямую в контроллер?
DTO — штука вроде очевидная: "не светить сущностями наружу". Но что дальше?
🔹 Кто-то делает DTO только в контроллерах, а внутри работает с доменными объектами. 🔹 Кто-то строит слоистую модель DTO-шек, даже между сервисами и репозиториями. 🔹 А кто-то вообще говорит: «DTO везде — меньше связность, проще миграции, лучше тестируемость». 💬 Вопрос к вам:
— Где заканчивается польза от DTO, а где начинается бессмысленная бюрократия? — DTO только на границах приложения или вообще везде? — Или пора забить и возвращать UserEntity напрямую в контроллер?
To pay the bills, Mr. Durov is issuing investors $1 billion to $1.5 billion of company debt, with the promise of discounted equity if the company eventually goes public, the people briefed on the plans said. He has also announced plans to start selling ads in public Telegram channels as soon as later this year, as well as offering other premium services for businesses and users.
China’s stock markets are some of the largest in the world, with total market capitalization reaching RMB 79 trillion (US$12.2 trillion) in 2020. China’s stock markets are seen as a crucial tool for driving economic growth, in particular for financing the country’s rapidly growing high-tech sectors.Although traditionally closed off to overseas investors, China’s financial markets have gradually been loosening restrictions over the past couple of decades. At the same time, reforms have sought to make it easier for Chinese companies to list on onshore stock exchanges, and new programs have been launched in attempts to lure some of China’s most coveted overseas-listed companies back to the country.
Библиотека джависта | Java Spring Maven Hibernate from ms